package tech.yunland.shop.domain.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import tech.yunland.shop.domain.dao.SNGenerator;

/**
 * @author: 袁首京<yuanshoujing@gmail.com>
 * 16/4/28
 */
@Service
public class SNService {

    @Autowired
    private SNGenerator generator;

    /**
     * 根据关键字及机构生成流水号
     *
     * @param key     关键字
     * @param organId 机构标识
     * @return
     */
    public String gen(String key, String organId) {
        return generator.gen(key, organId);
    }
}
